﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package GameMode {
    import flash.events.*;
    import Classes.*;

    public class GMPlayFiltered extends GMPlay {

        protected var m_predicate:Function = null;

        public function GMPlayFiltered(_arg1:Function){
            this.m_predicate = _arg1;
        }
        override protected function isObjectHighlightable(_arg1:GameObject):Boolean{
            return (this.m_predicate(_arg1));
        }
        override public function onMouseMove(_arg1:MouseEvent):Boolean{
            var _local2:Boolean = super.onMouseMove(_arg1);
            m_viewDragStartPos = null;
            return (_local2);
        }
        override protected function handleClick(_arg1:MouseEvent):void{
            if (((((!((m_highlightedObject == null))) && (!((this.m_predicate == null))))) && (this.m_predicate(m_highlightedObject)))){
                super.handleClick(_arg1);
            };
        }

    }
}//package GameMode 
